﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CsharpTrainer.Core.DAL
{
    public interface IDAO<T>
    {

        bool Insert(T obj);

        bool Update(T obj);

        bool Delete(int id);

        T GetSingle(int id);

        IList<T> GetAll();

        IList<T> GetByCriteria(string criteria);

        DataSet GetDsAll();

        DataSet GetDsByCriteria(string criteria);
    }
}
